from rest_framework import serializers
from .models import *


class CateSer(serializers.ModelSerializer):
    class Meta:
        model = CateModel
        fields = '__all__'


class GoodsSer(serializers.ModelSerializer):
    class Meta:
        model = GoodsModel
        fields = '__all__'

    img = serializers.ImageField(use_url=False)


class OrderSer(serializers.ModelSerializer):
    class Meta:
        model = OrderModel
        fields = '__all__'
